package com.aaa.hospital.ManagementEnd.service;

import com.aaa.hospital.ManagementEnd.pojo.Examine;
import com.aaa.hospital.ManagementEnd.pojo.Prescription;
import com.aaa.hospital.ManagementEnd.util.DiagnoseDB;
import com.aaa.hospital.ManagementEnd.util.PrescriptionDB;

import java.util.Date;
import java.util.List;

public interface PrescriptionService {
    List<Prescription> queryAll();

    boolean  ypinsert(Integer ypid, Integer diaid,Prescription pertion,Integer num); //药单添加
//   boolean queryById(Integer ypid, Integer discern,Integer num); //判定是否有该药品
//    boolean addNum(Integer ypid,Integer num); // 数量加
    boolean minusNum(Integer diaid,Integer ypid,Integer num);  //数量减
    List<Prescription>  selectAll(Integer diaid);

    boolean delByDiaid(Integer diaid);//清空表单
    Prescription  queryById(Integer ypid,Integer diaid); //判定是否有该药品
    boolean  delById(Integer ypid,Integer diaid); //判定药品为零时，删除该条数据




    //11/8
    //患者藥品展示
    List<PrescriptionDB>  preList(Integer diaid, Date time);
    Examine EXById(Integer id);
}
